package com.lagou.beans;

import com.lagou.entity.User;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class UserBean {

    @Bean
    public User getUser() {

        User user = new User();
        user.setId(1);
        user.setName("wulimin");

        return user;
    }
}
